package org.tinygroup.tinyspider.jnfqbj;

import java.util.List;
import java.util.Map;

import org.tinygroup.htmlparser.node.HtmlNode;
import org.tinygroup.parser.filter.FastNameFilter;
import org.tinygroup.tinyspider.Processor;

/**
 * 
 * @Path org.tinygroup.tinyspider.jnfqbj.PrintJnfqbjNameProcessor
 * @Description 江南愤青百度百家文章打印处理器
 * @date 2015年12月21日下午10:24:35
 * @author Administrator
 * @version：1.0
 */
public class PrintJnfqbjNameProcessor implements Processor {

    public void process(String url, HtmlNode node, Map<String, Object> parameters) throws Exception {
        FastNameFilter<HtmlNode> filter = new FastNameFilter<HtmlNode>(node);
        filter.setNodeName("a");
        List<HtmlNode> aList = filter.findNodeList();
        for (HtmlNode a : aList) {
            System.out.print(a.getContent());
            System.out.print(" ");
            System.out.println();
        }
    }

}
